{include file="header.tpl"}

<div id="main">

<div id="main-top"></div>

<div id="banner">
	<span><a href="index.php">&lt;&lt; Home</a></span> 
	<span class="headtitle">Inbox</span>
	<span><a href="process.php">Process &gt;&gt;</a></span>
</div>

<div id="main-middle">
	<div>
		<form action="inbox.php?next=addword" method="post">
		<div class="normaltips">{$tipsmsg}</div>
		<div>
			<span>
				<img alt="52danci logo" src="{$logo}" />
			</span>
			<span>
				<input type="text" name="words" id="words" />
			</span>
			<span>
				<input type="submit" value="Add!" />
			</span>
		</div>
		</form>
	</div>
	<!-- start of word list -->
	<div class="subtitle">Inbox Words List</div>
	<div>
		{section name=foo loop=$wordslist}
		<div>
			<span><a href="?next=delete&id={$wordslist[foo]->getId()}&page={$currentpage}">X</a></span>
			<span>{$wordslist[foo]->getKey()}</span>
		</div>
		{/section}
	</div>
	<!-- end of word list -->
	
	<!-- start of paging links -->
	<div>
		<a href="{$first}">&lt;&lt; First</a>
		<a href="{$prev}">&lt; Prev</a>
		{$currentpage} / {$pagesamount}
		<a href="{$next}">Next &gt;</a>
		<a href="{$last}">Last &gt;&gt;</a>
	</div>
	<!-- end of paging links -->
</div>

<div id="main-bottom"></div>

</div>

{include file="footer.tpl"}
